import * as React from 'react';

interface HeaderProps {
  title: string
}

class Header extends React.Component<HeaderProps, {}> {
  render() {
    return <div>
      {this.props.title}
    </div>
  }
}

interface HomeProps {
  title: string
}

const Home = (props: HomeProps) => {
  return <div>
    <div>{props.title}</div>
    <Header title='头部'/>
  </div>
}

export default Home